#ifndef CALCACTIVITY_H
#define CALCACTIVITY_H
#include <QMainWindow>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QDomDocument>
#include <QLabel>
#include <QBoxLayout>
#include"Act.h"
//#include "Bridget.h"


class CalcActivity : public QWidget
{
    Q_OBJECT

private:
    QComboBox *inputAct;
    QLineEdit *inputTime;
    QLineEdit *outputEnergy;
    QLineEdit *inputEnergy;
    QLineEdit *inputActEdit;

    Act *act;

    QPushButton *calculateButton;
    QPushButton *addButton;
    QPushButton *saveAdded;
    QPushButton *cancel;

    QDomDocument docAct;

    QLabel *inputActLabel;
    QLabel *inputTimeLabel;

    QLabel *outputEnergyLabel;
    QLabel *inputEnergyLabel;
    QLabel *outputSpendLabel;
    QLabel *lab;
    QVBoxLayout *mainLayout;




public:
    CalcActivity(QWidget *parent = 0, Bridget* bd=0);
    ~CalcActivity() {};


public slots:
    void onCalculateActivity();
    void onAddButton();
    void onSaveAddedAct();
    void onCancelButton();


};
#endif // CALCACTIVITY_H
